package com.yyq.adms.yyb.summary.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yyq.sos.pojo.BaseEntity;

/**
 * 技术总结 奖励申报
 * @author 杨应滨
 * @2012-12-7
 *
 */
@Entity
@Table(name="technoloyapply")
public class TechnologyApply extends BaseEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	/**
	 * 项目名称
	 */
	private String projectName;
	
	/**
	 * 申报单位
	 */
	private String applyDep;
	
	/**
	 * 项目主要完成人
	 */
	private String projectPerson;
	
	/**
	 * 申报等级
	 */
	private String applyLevel;
	
	/**
	 * 申报时间
	 */
	private Date applyDate;

	/**
	 * 所属平台ID
	 */
	private String belongPlateFormID;

	/**
	 * 报送单位
	 */
	private String sentDep;

	/**
	 * 是否全局可视
	 */
//	private Integer isGlobal;

	/**
	 * 是否有附件
	 */
//	private Integer isHavePatents;

	/**
	 * 是否可用
	 */
	private Integer isEnabled;

	/**
	 * 数据来源
	 */
//	private Integer sourceID;

	/**
	 * 是否提交给总部
	 */
//	private Integer isSubmitTop;

	/**
	 * 所属年份，不需要加入数据库
	 */
	private String belongYear;

	/**
	 * 批注
	 */
	private String endorse;
	
	
	/**
	 * 单位名称
	 */
	private String sentDepName;
	
	public TechnologyApply() {
		super();
	}

	public TechnologyApply(String projectName, String applyDep,
			String projectPerson, String applyLevel, Date applyDate,
			String belongPlateFormID,String sentDep, Integer isEnabled) {
		super();
		this.projectName = projectName;
		this.applyDep = applyDep;
		this.projectPerson = projectPerson;
		this.applyLevel = applyLevel;
		this.applyDate = applyDate;
		this.belongPlateFormID = belongPlateFormID;
		this.sentDep = sentDep;
//		this.isGlobal = isGlobal;
//		this.isHavePatents = isHavePatents;
		this.isEnabled = isEnabled;
//		this.sourceID = sourceID;
//		this.isSubmitTop = isSubmitTop;
	}

	@Column(name="applydate")
	public Date getApplyDate() {
		return applyDate;
	}

	@Column(name="applydep")
	public String getApplyDep() {
		return applyDep;
	}

	@Column(name="applylevel")
	public String getApplyLevel() {
		return applyLevel;
	}

	@Column(name="belongplateformid")
	public String getBelongPlateFormID() {
		return belongPlateFormID;
	}

	@Transient
	public String getBelongYear() {
		return belongYear;
	}

	@Column(name="isenabled")
	public Integer getIsEnabled() {
		return isEnabled;
	}

//	@Column(name="isglobal")
//	public Integer getIsGlobal() {
//		return isGlobal;
//	}
//
//	@Column(name="ishavepatents")
//	public Integer getIsHavePatents() {
//		return isHavePatents;
//	}
//
//	@Column(name="issubmittop")
//	public Integer getIsSubmitTop() {
//		return isSubmitTop;
//	}


	@Column(name="projectname")
	public String getProjectName() {
		return projectName;
	}

	@Column(name="projectperson")
	public String getProjectPerson() {
		return projectPerson;
	}

	@Transient
	public String getSentDep() {
		return sentDep;
	}

//	@Column(name="sourceid")
//	public Integer getSourceID() {
//		return sourceID;
//	}

	public void setApplyDate(Date applyDate) {
		this.applyDate = applyDate;
	}

	public void setApplyDep(String applyDep) {
		this.applyDep = applyDep;
	}

	public void setApplyLevel(String applyLevel) {
		this.applyLevel = applyLevel;
	}

	public void setBelongPlateFormID(String belongPlateFormID) {
		this.belongPlateFormID = belongPlateFormID;
	}

	public void setBelongYear(String belongYear) {
		this.belongYear = belongYear;
	}

	public void setIsEnabled(Integer isEnabled) {
		this.isEnabled = isEnabled;
	}

//	public void setIsGlobal(Integer isGlobal) {
//		this.isGlobal = isGlobal;
//	}
//
//	public void setIsHavePatents(Integer isHavePatents) {
//		this.isHavePatents = isHavePatents;
//	}
//
//	public void setIsSubmitTop(Integer isSubmitTop) {
//		this.isSubmitTop = isSubmitTop;
//	}


	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public void setProjectPerson(String projectPerson) {
		this.projectPerson = projectPerson;
	}

	public void setSentDep(String sentDep) {
		this.sentDep = sentDep;
	}

//	public void setSourceID(Integer sourceID) {
//		this.sourceID = sourceID;
//	}
//	
	@Column(name="endorse")
	public String getEndorse() {
		return endorse;
	}

	public void setEndorse(String endorse) {
		this.endorse = endorse;
	}

	@Column(name="sentdepname")
	public String getSentDepName() {
		return sentDepName;
	}

	public void setSentDepName(String sentDepName) {
		this.sentDepName = sentDepName;
	}
	
}
